package com.donggua.aichebao.commonui.Dialog;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.donggua.aichebao.commonui.R;

/**
 * Created by fzh on 2017/8/17.
 */

public class DGTipDialog extends DGDialogBase implements View.OnClickListener{
    private TextView tvTipContent;
    public DGTipDialog(Context context) {
        super(context);
        setContentView(R.layout.dg_dlg_tip);
        tvTipContent = (TextView)findViewById(R.id.tv_dlgTipContent);
    }

    public void setTipContent(String text){
        tvTipContent.setText(text);
    }

    public void setTipContent(int strId){
        String str = getContext().getResources().getString(strId);
        tvTipContent.setText(str);
    }

    @Override
    public void onClick(View view) {
        closeDialog();
    }
}
